Part Number Hot Search : 
DS21FT44 CPC5001 20S14 FR151 BFR20 10CD2 00ETTS H40N03E
Product Description
Full Text Search
 

To Download ADXL312 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  3-axis, 1.5 g /3 g /6 g /12 g digital accelerometer ADXL312 rev. 0 information furnished by analog devices is believed to be accurate and reliable. however, no responsibility is assumed by analog devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. specifications subject to change without notice. no license is granted by implication or otherwise under any patent or patent rights of analog devices. trademarks and registered trademarks are the property of their respective owners. one technology way, p.o. box 9106, norwood, ma 02062-9106, u.s.a. tel: 781.329.4700 www.analog.com fax: 781.461.3113 ?2010 analog devices, inc. all rights reserved. features ultralow power: as low as 57 a in measurement mode and 0.1 a in standby mode at v s = 3.3 v (typical) power consumption scales automatically with bandwidth user-selectable resolution fixed 10-bit resolution full resolution, where resolution increases with g range, up to 13-bit resolution at 12 g (maintaining 2.9 mg/lsb scale factor in all g ranges ) embedded, patent pending fifo technology minimizes host processor load built-in motion detection functions for activity/inactivity monitoring supply and i/o voltage range: 2.0 v to 3.6 v spi (3- and 4-wire) and i 2 c digital interfaces flexible interrupt modes mappable to either interrupt pin measurement ranges selectable via serial command bandwidth selectable via serial command wide temperature range (?40 to +105c) 10,000 g shock survival pb free/rohs compliant small and thin: 5 mm 5 mm 1.45 mm lfcsp package qualified for automotive applications applications car alarm hill start aid (hsa) electronic parking brake data recorder (black box) general description the ADXL312 is a small, thin, low power, 3-axis accelerometer with high resolution (13-bit) measurement up to 12 g . digital output data is formatted as 16-bit twos complement and is accessible through either a spi (3- or 4-wire) or i 2 c digital interface. the ADXL312 is well suited for car alarm or black box applica- tions. it measures the static acceleration of gravity in tilt-sensing applications, as well as dynamic acceleration resulting from motion or shock. its high resolution (2.9 m g /lsb) enables resolution of inclination changes of as little as 0.25. a built-in fifo facilitates using oversampling techniques to improve resolution to as little as 0.05 of inclination. several special sensing functions are provided. activity and inactivity sensing detects the presence or absence of motion and whether the acceleration on any axis exceeds a user-set level. these functions can be mapped to interrupt output pins. an integrated 32 level fifo can be used to store data to minimize host processor intervention. low power modes enable intelligent motion-based power management with threshold sensing and active acceleration measurement at extremely low power dissipation. the ADXL312 is supplied in a small, thin 5 mm 5 mm 1.45 mm, 32-lead, lfcsp package. functional block diagram 3-axis sensor sense electronics digital filter ADXL312 power management control and interrupt logic serial i/o int1 v s v dd i/o int2 sda/sdi/sdio sdo/alt address scl/sclk gnd adc 32 level fifo cs 08791-001 figure 1. ADXL312 simplified block diagram
ADXL312 rev. 0 | page 2 of 32 table of contents features .............................................................................................. 1 ? applications....................................................................................... 1 ? general description ......................................................................... 1 ? functional block diagram .............................................................. 1 ? revision history ............................................................................... 2 ? specifications..................................................................................... 3 ? absolute maximum ratings............................................................ 5 ? thermal resistance ...................................................................... 5 ? esd caution.................................................................................. 5 ? pin configuration and function descriptions............................. 6 ? typical performance characteristics ............................................. 7 ? theory of operation ...................................................................... 10 ? power sequencing ...................................................................... 10 ? power savings ............................................................................. 10 ? serial communications ................................................................. 12 ? spi................................................................................................. 12 ? i 2 c ................................................................................................. 15 ? interrupts..................................................................................... 17 ? fifo ............................................................................................. 18 ? self-test ....................................................................................... 19 ? register map ................................................................................... 20 ? register definitions ................................................................... 21 ? applications information .............................................................. 25 ? power supply decoupling ......................................................... 25 ? mechanical considerations for mounting.............................. 25 ? threshold .................................................................................... 25 ? link mode ................................................................................... 25 ? sleep mode vs. low power mode............................................. 25 ? using self-test ............................................................................ 26 ? data formatting of upper data rates..................................... 27 ? noise performance ..................................................................... 28 ? axes of acceleration sensitivity ............................................... 29 ? solder profile................................................................................... 30 ? outline dimensions ....................................................................... 31 ? ordering guide .......................................................................... 32 ? automotive products ................................................................. 32 ? revision history revision 0: initial version
ADXL312 rev. 0 | page 3 of 32 specifications t a = ?40c to +105 c , v s = v dd i/o = 3.3 v, acceleration = 0 g , unless otherwise noted. table 1. specifications 1 parameter conditions min typ max unit sensor input each axis measurement range user selectable 1.5, 3, 6, 12 g nonlinearity percentage of full scale 0.5 % inter-axis alignment error 0.1 degrees cross-axis sensitivity 2 1 % output resolution each axis all g ranges default resolution 10 bits 1.5 g range full resolution enabled 10 bits 3 g range full resolution enabled 11 bits 6 g range full resolution enabled 12 bits 12 g range full resolution enabled 13 bits sensitivity each axis scale factor at x out , y out , z out 1.5 g , 10-bit or full resolution 2.6 2.9 3.2 m g/ lsb scale factor at x out , y out , z out 3 g , 10-bit resolution 5.2 5.8 6.4 m g /lsb scale factor at x out , y out , z out 6 g, 10-bit resolution 10.4 11.6 12.8 m g /lsb scale factor at x out , y out , z out 12 g , 10-bit resolution 20.9 23.2 25.5 m g /lsb sensitivity at x out , y out , z out 1.5 g , 10-bit or full resolution 312 345 385 lsb/ g sensitivity at x out , y out , z out 3 g , 10-bit resolution 156 172 192 lsb/ g sensitivity at x out , y out , z out 6 g , 10-bit resolution 78 86 96 lsb/ g sensitivity at x out , y out , z out 12 g , 10-bit resolution 39 43 48 lsb/ g sensitivity change due to temperature 0.01 %/c 0 g bias level each axis initial 0 g output t = 25c, x out , y out ?150 +150 m g initial 0 g output t = 25c, z out ?250 +250 m g 0 g output over temperature ?40c < t < 105c, x out , y out , z out ?250 +250 m g 0 g offset tempco x out , y out 0.8 mg /c 0 g offset tempco z out 1.5 mg /c noise performance noise density (x-, y-axes) 200 340 440 g /hz noise density (z-axis) 200 470 595 g /hz output data rate/bandwidth user selectable measurement rate 3 6.25 3200 hz self-test 4 data rate 100 hz, 2.0 v s 3.6 output change in x-axis 0.20 2.10 g output change in y-axis ?2.10 ?0.20 g output change in z-axis 0.30 3.40 g power supply operating voltage range (v s ) 2.0 3.6 v interface voltage range (v dd i/o ) 1.7 v s v supply current data rate > 100 hz 100 170 300 a data rate < 10 hz 30 55 110 a standby mode leakage current 0.1 2 a turn-on (wale-up) time 5 1.4 ms temperature operating temperature range ?40 +105 c
ADXL312 rev. 0 | page 4 of 32 1 all minimum and maximum specifications are guarante ed. typical specifications are not guaranteed. 2 cross-axis sensitivity is defined as coupling between any two axes. 3 bandwidth is half the output data rate. 4 self-test change is defined as the output ( g ) when the self_test bit = 1 (in the data_format register) minus the output ( g ) when the self_test bit = 0 (in the data_format register). due to device filtering, the output reaches its final value after 4 when enabling or disabling self- test, where = 1/(data rate). 5 turn-on and wake-up times are determined by the user-defined bandwidth. at a 100 hz data rate, the turn-on and wake-up times a re each approximately 11.1 ms. for other data rates, the t urn-on and wake-up times are each approximately + 1.1 in milliseconds, where = 1/(data rate).
ADXL312 rev. 0 | page 5 of 32 absolute maximum ratings table 2. parameter rating acceleration any axis, unpowered 10,000 g any axis, powered 10,000 g v s ?0.3 v to 3.9 v v dd i/o ?0.3 v to 3.9 v all other pins ?0.3 v to v dd i/o + 0.3 v or 3.9 v, whichever is less output short-circuit duration (any pin to ground) indefinite temperature range powered ?40c to +125c storage ?40c to +125c thermal resistance ja is specified for the worst-case conditions, that is, a device soldered in a circuit board for surface-mount packages. table 3. thermal resistance package type ja jc unit 32-lead lfcsp package 27.27 30 c/w esd caution stresses above those listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the operational section of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability.
ADXL312 rev. 0 | page 6 of 32 pin configuration and fu nction descriptions notes 1. nc = no connect. do not connect to this pin. 2. the exposed pad must be soldered to the ground plane. 24 sda/sdi/sdio 23 sdo/alt address 22 reserved 21 int2 20 int1 19 nc 18 nc 17 nc 1 2 3 4 5 6 7 8 gnd reserved gnd gnd v s cs reserved nc 9 10 11 12 13 14 15 16 nc nc nc nc nc nc nc nc 32 31 30 29 28 27 26 25 nc v dd i/o nc nc nc nc scl/sclk nc top view (not to scale) ADXL312 08791-002 figure 2. pin configuration (top view) table 4. pin function descriptions pin no. mnemonic description 1 gnd this pin must be connected to ground. 2 reserved reserved. this pin must be connected to v s or left open. 3 gnd this pin must be connected to ground. 4 gnd this pin must be connected to ground. 5 v s supply voltage. 6 cs chip select. 7 reserved reserved. this pin must be left open. 8 to19 nc no connect. do not connect to this pin. 20 int1 interrupt 1 output. 21 int2 interrupt 2 output. 22 reserved reserved. this pin must be connected to gnd or left open. 23 sdo/alt address serial data out, alternate i 2 c address select. 24 sda/sdi/sdio serial data (i 2 c), serial data in (spi 4-wire), serial data in/out (spi 3-wire). 25 nc no connect. do not connect to this pin. 26 scl/sclk serial communications clock. 27 to 30 nc no connect. do not connect to this pin. 31 v dd i/o digital interface supply voltage. 32 nc no connect. ep the exposed pad must be soldered to the ground plane.
ADXL312 rev. 0 | page 7 of 32 typical performance characteristics n>1000 unless otherwise noted. 0 5 10 15 20 25 30 35 40 ?150 ?120 ?60 ?30 ?90 0 6030 90 120 150 zero g offset (m g ) percent of popul a tion (%) 08791-003 figure 3. x-axis zero- g bias. 25c, v s = v dd i/o = 3.3 v 0 5 10 15 20 25 30 35 ?150 ?120 ?60 ?30 ?90 0 6030 90 120 150 zero g offset (m g ) percent of popul a tion (%) 08791-004 figure 4. y axis zero- g bias, 25c, v s = v dd i/o = 3.3 v 0 5 10 15 20 25 30 35 40 45 50 ?250 ?200 ?100 ?50 ?150 0 10050 150 200 250 zero g offset (m g ) percent of popul a tion (%) 08791-005 figure 5. z axis zero- g bias, 25c, v s = v dd i/o = 3.3 v 0 5 10 15 20 25 30 35 40 ?3.0 ?2.5 ?2.0 ?1.5 ?1.0 ?0.5 0 0.5 1.0 2.0 3.0 1.5 2.5 zero g temperature coefficient (m g /c) percent of popul a tion (%) 08791-006 figure 6. x-axis zero- g bias drift, v s = v dd i/o = 3.3 v 0 5 10 15 20 25 30 35 40 ?3.0 ?2.5 ?2.0 ?1.5 ?1.0 ?0.5 0 0.5 1.0 2.0 3.0 1.5 2.5 zero g temperature coefficient (m g /c) percent of popul a tion (%) 08791-007 figure 7. y-axis zero- g bias drift, v s = v dd i/o = 3.3 v 0 5 10 15 20 25 ?3.0 ?2.5 ?2.0 ?1.5 ?1.0 ?0.5 0 0.5 1.0 2.0 3.0 1.5 2.5 zero g temperature coefficient (m g /c) percent of popul a tion (%) 08791-008 figure 8. z-axis zero- g bias drift, v s = v dd i/o = 3.3 v
ADXL312 rev. 0 | page 8 of 32 0 10 20 40 60 30 50 70 312 318 324 330 336 342 348 354 360 372 384 366 378 sensitivity (lsb/ g ) percent of popul a tion (%) 08791-009 figure 9. x-axis sensitivity, v s = v dd i/o = 3.3 v, 25c 0 10 20 40 60 30 50 70 312 318 324 330 336 342 348 354 360 372 384 366 378 sensitivity (lsb/ g ) percent of popul a tion (%) 08791-010 figure 10. y-axis sensitivity, v s = v dd i/o = 3.3 v, 25c 0 10 20 40 60 30 50 70 312 318 324 330 336 342 348 354 360 372 384 366 378 sensitivity (lsb/ g ) percent of popul a tion (%) 08791-011 figure 11. z-axis sensitivity, v s = v dd i/o = 3.3 v, 25c 0 5 10 20 15 25 30 ?0.030 ?0.025 ?0.020 ?0.015 ?0.010 ?0.005 0 0.005 0.010 0.020 0.030 0.015 0.025 sensitivity temperature coefficient (%/c) percent of popul a tion (%) 08791-012 figure 12. x-axis sensitivity temperature coefficient, v s = v dd i/o = 3.3 v 0 5 10 20 15 25 35 30 ?0.030 ?0.025 ?0.020 ?0.015 ?0.010 ?0.005 0 0.005 0.010 0.020 0.030 0.015 0.025 sensitivity temperature coefficient (%/c) percent of popul a tion (%) 08791-013 figure 13. y-axis sensitivity temperature coefficient, v s = v dd i/o = 3.3 v 0 5 10 20 15 25 35 30 ?0.030 ?0.025 ?0.020 ?0.015 ?0.010 ?0.005 0 0.005 0.010 0.020 0.030 0.015 0.025 sensitivity temperature coefficient (%/c) percent of popul a tion (%) 08791-014 figure 14. z-axis sensitivity temperature coefficient, v s = v dd i/o = 3.3 v
ADXL312 rev. 0 | page 9 of 32 0 10 20 40 30 50 80 70 60 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 self-test response ( g ) percent of popul a tion (%) 08791-015 figure 15. x-axis self-test delta, v s = v dd i/o = 3.3 v, 25c 0 10 20 40 30 50 70 60 ?2.1 ?1.9 ?1.7 ?1.5 ?1.3 ?1.1 ?0.9 ?0.7 ?0.5 ?0.3 self-test response ( g ) percent of popul a tion (%) 08791-016 figure 16. y-axis self-test delta, v s = v dd i/o = 3.3 v, 25c 0 10 20 40 30 50 80 70 60 0.3 0.6 0.9 1.2 1.5 1.8 2.1 2.4 2.7 3.33.0 self-test response ( g ) percent of popul a tion (%) 08791-017 figure 17. z-axis self-test delta, v s = v dd i/o = 3.3 v, 25c 0 10 20 40 30 50 80 70 60 30 50 70 90 110 130 150 170 190 210 230 250 270 290 310 current (na) percent of popul a tion (%) 08791-018 figure 18. standby mode current consumption, v s = v dd i/o = 3.3 v, 25c 0 5 10 20 15 25 35 30 100 120 140 160 180 200 220 240 260 280 300 current consumption (a) percent of popul a tion (%) 0 8791-019 figure 19. current consumption, meas urement mode, data rate = 100 hz, v s = v dd i/o = 3.3 v, 25c 0 50 100 150 200 2.0 2.4 2.8 3.2 3.6 supply voltage (v) supply current (a) 08791-233 figure 20. supply current vs. supply voltage, v s at 25c
ADXL312 rev. 0 | page 10 of 32 theory of operation the ADXL312 is a complete 3-axis acceleration measurement system with a selectable measurement range of 1.5 g, 3 g, 6 g, or 12 g . it measures both dynamic acceleration resulting from motion or shock and static acceleration, such as gravity, which allows it to be used as a tilt sensor. the sensor is a polysilicon surface-micromachined structure built on top of a silicon wafer. polysilicon springs suspend the structure over the surface of the wafer and provide a resistance against acceleration forces. deflection of the structure is measured using differential capacitors that consist of independent fixed plates and plates attached to the moving mass. acceleration deflects the beam and unbalances the differential capacitor, resulting in a sensor output whose amplitude is proportional to acceleration. phase- sensitive demodulation is used to determine the magnitude and polarity of the acceleration. power sequencing power can be applied to v s or v dd i/o in any sequence without damaging the ADXL312. all possible power-on modes are summarized in table 5 . the interface voltage level is set with the interface supply voltage, v dd i/o , which must be present to ensure that the ADXL312 does not create a conflict on the communication bus. for single-supply operation, v dd i/o can be the same as the main supply, v s . in a dual-supply application, however, v dd i/o can differ from v s to accommodate the desired interface voltage, as long as v s is greater than or equal to v dd i/o . after v s is applied, the device enters standby mode, where power consumption is minimized and the device waits for v dd i/o to be applied and for the command to enter measurement mode to be received. (this command can be initiated by setting the measure bit in the power_ctl register (address 0x2d).) in addition, any register can be written to or read from to configure the part while the device is in standby mode. it is recommended to configure the device in standby mode and then to enable measurement mode. clearing the measure bit returns the device to the standby mode. table 5. power sequencing condition v s v dd i/o description power off off off the device is completely off, but there is a potential for a communication bus conflict. bus disabled on off the device is on in standby mode, but communication is unavailable and will create a conflict on the communication bus. the duration of this state should be minimized during power-up to prevent a conflict. bus enabled off on no functions are available, but the device will not create a conflict on the communication bus. standby or measurement on on the device is in standby mode, awaiting a command to enter measurement mode, and all sensor functions are off. after the device is instructed to enter measurement mode, all sensor functions are available. power savings power modes the ADXL312 automatically modulates its power consumption in proportion to its output data rate, as outlined in table 6 . if additional power savings is desired, a lower power mode is available. in this mode, the internal sampling rate is reduced, allowing for power savings in the 12.5 hz to 400 hz data rate range at the expense of slightly greater noise. to enter low power mode, set the low_power bit (bit 4) in the bw_rate register (address 0x2c). the current consumption in low power mode is shown in table 7 for cases where there is an advantage to using low power mode. use of low power mode for a data rate not shown in table 7 does not provide any advantage over the same data rate in normal power mode. therefore, it is recommended that only data rates shown in table 7 be used in low power mode. the current consumption values shown in table 6 and table 7 are for a v s of 3.3 v.
ADXL312 rev. 0 | page 11 of 32 table 6. current consumption vs. data rate (t a = 25c, v s = v dd i/o = 3.3 v) output data rate (hz) bandwidth (hz) rate code i dd (a) 3200 1600 1111 170 1600 800 1110 115 800 400 1101 170 400 200 1100 170 200 100 1011 170 100 50 1010 170 50 25 1001 115 25 12.5 1000 82 12.5 6.25 0111 65 6.25 3.125 0110 57 table 7. current draw vs. data rate, low power mode (t a = 25c, v s = v dd i/o = 3.3 v) output data rate (hz) bandwidth (hz) rate code i dd (a) 400 200 1100 115 200 100 1011 82 100 50 1010 65 50 25 1001 57 25 12.5 1000 50 12.5 6.25 0111 43 autosleep mode additional power savings can be had by having the ADXL312 automatically switch to sleep mode during periods of inactivity. to enable this feature, set the thresh_inact register (address 0x25) to an acceleration threshold value. levels of acceleration below this threshold are regarded as no activity levels. set time_inact (address 0x26) to an appropriate inactivity time period. then set the auto_sleep bit and the link bit in the power_ctl register (address 0x2d). if the device does not detect a level of acceleration in excess of thres_inact for time_inact seconds, then the device is transitioned to sleep mode automatically. current consumption at the sub-8 hz data rates used in this mode is typically 30 a for a v s of 3.3 v. standby mode for even lower power operation, standby mode can be used. in standby mode, current consumption is reduced to 0.1a (typical). in this mode, no measurements are made. standby mode is entered by clearing the measure bit (bit 3) in the power_ctl register (address 0x2d). placing the device into standby mode preserves the contents of the fifo.
ADXL312 rev. 0 | page 12 of 32 serial communications i 2 c and spi digital communications are available. in both cases, the ADXL312 operates as a slave. i 2 c mode is enabled if the cs pin is tied high to v dd i/o . the cs pin should always be tied high to v dd i/o or be driven by an external controller because there is no default mode if the cs pin is left unconnected. therefore, not taking these precautions may result in an inability to communicate with the part. in spi mode, the cs pin is controlled by the bus master. in both spi and i 2 c modes of operation, data transmitted from the ADXL312 to the master device should be ignored during writes to the ADXL312. spi for spi, either 3- or 4-wire configuration is possible, as shown in the connection diagrams in figure 21 and figure 22 . clearing the spi bit in the data_format register (address 0x31) selects 4-wire mode, whereas setting the spi bit selects 3-wire mode. the maximum spi clock speed is 5 mhz with 100 pf maximum loading, and the timing scheme follows clock polarity (cpol) = 1 and clock phase (cpha) = 1. if power is applied to the ADXL312 before the clock polarity and phase of the host processor are configured, the cs pin should be brought high before changing the clock polarity and phase. when using 3-wire spi, it is recommended that the sdo pin be either pulled up to v dd i/o or pulled down to gnd via a 10 k resistor. processor d out d in/out d out ADXL312 cs sdio sdo sclk 08791-021 figure 21. 3-wire spi connection diagram processor d out d out d in d out ADXL312 cs sdi sdio sclk 08791-022 figure 22. 4-wire spi connection diagram cs is the serial port enable line and is controlled by the spi master. this line must go low at the start of a transmission and high at the end of a transmission, as shown in . sclk is the serial port clock and is supplied by the spi master. sclk should idle high during a period of no transmission. sdi and sdo are the serial data input and output, respectively. data is updated on the falling edge of sclk and should be sampled on the rising edge of sclk. figure 23 to read or write multiple bytes in a single transmission, the multiple-byte bit, located after the r/ w bit in the first byte transfer (mb in to ), must be set. after the register addressing and the first byte of data, each subsequent set of clock pulses (eight clock pulses) causes the ADXL312 to point to the next register for a read or write. this shifting continues until the clock pulses cease and figure 23 figure 25 cs is deasserted. to perform reads or writes on different, nonsequential registers, cs must be deasserted between transmissions, and the new register must be addressed separately. the timing diagram for 3-wire spi reads or writes is shown in figure 25 . the 4-wire equivalents for spi writes and reads are shown in figure 23 and figure 24 , respectively. for correct operation of the part, the logic thresholds and timing parameters in table 8 and table 9 must be met at all times. use of the 3200 hz and 1600 hz output data rates is only recommended with spi communication rates greater than or equal to 2 mhz. the 800 hz output data rate is recommended only for communication speeds greater than or equal to 400 khz, and the remaining data rates scale proportionally. for example, the minimum recommended communication speed for a 200 hz output data rate is 100 khz. operation at an output data rate below the recommended minimum may result in undesirable effects on the acceleration data, including missing samples or additional noise.
ADXL312 rev. 0 | page 13 of 32 table 8. spi digital input/output limit 1 parameter test conditions min max unit digital input low level input voltage (v il ) 0.3 v dd i/o v high level input voltage (v ih ) 0.7 v dd i/o v low level input current (i il ) v in = v dd i/o 0.1 a high level input current (i ih ) v in = 0 v ?0.1 a digital output low level output voltage (v ol ) i ol = 10 ma 0.2 v dd i/o v high level output voltage (v oh ) i oh = ?4 ma 0.8 v dd i/o v low level output current (i ol ) v ol = v ol, max 10 ma high level output current (i oh ) v oh = v oh, min ?4 ma pin capacitance f in = 1 mhz, v in = 2.5 v 8 pf 1 limits based on characterization results, not production tested. table 9. spi timing (t a = 25c, v s = v dd i/o = 3.3 v) 1 limit 2, 3 parameter min max unit description f sclk 5 mhz spi clock frequency. t sclk 200 ns 1/(spi clock frequency) mark-spa ce ratio for the sclk input is 40/60 to 60/40. t delay 5 ns cs falling edge to sclk falling edge . t quiet 5 ns sclk rising edge to cs rising edge. t dis 10 ns cs rising edge to sdo disabled. t cs,dis 150 ns cs deassertion between spi communications. t s 0.3 t sclk ns sclk low pulse width (space). t m 0.3 t sclk ns sclk high pulse width (mark). t setup 5 ns sdi valid before sclk rising edge. t hold 5 ns sdi valid after sclk rising edge. t sdo 40 ns sclk falling edge to sdo/sdio output transition. t r 4 20 ns sdo/sdio output high to output low transition. t f 4 20 ns sdo/sdio output low to output high transition. 1 the cs , sclk, sdi, and sdo pins are not internally pulled up or down; they must be driven for proper operation. 2 limits based on characterization results, characterized with f sclk = 5 mhz and bus load capacitance of 100 pf; not production tested. 3 the timing values are me asured corresponding to the input thresholds (v il and v ih ) given in table 8. 4 output rise and fall times measured with capa citive load of 150 pf.
ADXL312 rev. 0 | page 14 of 32 t delay t setup t hold t sdo t r , t f xxx w mb a5 a0 d7 d0 xx x address bits data bits t sclk t m t s t quiet t dis t cs,dis s cl k sdi sdo cs 08791-129 figure 23. spi 4-wire write cs xxx rm ba 5 a0 d7 d0 x x x address bits data bits t dis scl k sdi sdo t quiet t sdo t setup t delay t sclk t m t s t r , t f t hold t cs,dis 08791-130 figure 24. spi 4-wire read cs t delay t setup t hold t sdo r/w mb a5 a0 d7 d0 address bits data bits t sclk t m t s t quiet scl k sdio sdo notes 1. t sdo is only present during reads. t r , t f t cs,dis 08791-131 figure 25. spi 3-wire read/write
ADXL312 rev. 0 | page 15 of 32 i 2 c with cs tied high to v dd i/o , the ADXL312 is in i 2 c mode, requiring a simple 2-wire connection as shown in . the ADXL312 conforms to the um10204 i 2 c-bus specification and user manual , rev. 0319 june 2007, available from nxp semiconductor. it supports standard (100 khz) and fast (400 khz) data transfer modes if the bus parameters given in and are met. single- or multiple-byte reads/writes are supported, as shown in . with the alt address pin high, the 7-bit i 2 c address for the device is 0x1d, followed by the r/ figure 26 table 10 table 11 figure 27 w bit. this translates to 0x3a for a write and 0x3b for a read. an alternate i 2 c address of 0x53 (followed by the r/ w bit) can be chosen by grounding the alt address pin (pin 7). this translates to 0xa6 for a write and 0xa7 for a read. processor d in/out d out r p v dd i/o r p ADXL312 cs sda alt address scl 08791-032 figure 26. i 2 c connection diagram (address 0x53) if other devices are connected to the same i 2 c bus, the nominal operating voltage level of these other devices cannot exceed v dd i/o by more than 0.3 v. external pull-up resistors, r p , are necessary for proper i 2 c operation. refer to the um10204 i 2 c-bus specification and user manual , rev. 0319 june 2007, when selecting pull-up resistor values to ensure proper operation. table 10. i 2 c digital input/output limit 1 parameter test conditions min max unit digital input low level input voltage (v il ) 0.3 v dd i/o v high level input voltage (v ih ) 0.7 v dd i/o v low level input current (i il ) v in = v dd i/o 0.1 a high level input current (i ih ) v in = 0 v ?0.1 a digital output low level output voltage (v ol ) v dd i/o < 2 v, i ol = 3 ma 0.2 v dd i/o v v dd i/o 2 v, i ol = 3 ma 400 mv low level output current (i ol ) v ol = v ol, max 3 ma pin capacitance f in = 1 mhz, v in = 2.5 v 8 pf 1 limits based on characterization results; not production tested. notes 1. this start is either a restart or a stop followed by a start. 2. the shaded areas represent when the device is listening. 08791-033 master start slave address + write register address slave ack ack ack master start slave address + write register address slave ack ack ack ack master start slave address + write register address stop slave ack ack master start start 1 start 1 slave address + write register address nack stop slave ack ack data stop ack single-byte write multiple-byte write data data multiple-byte read slave address + read slave address + read ack data data data stop nack ack single-byte read figure 27. i 2 c device addressing
ADXL312 rev. 0 | page 16 of 32 table 11. i 2 c timing (t a = 25c, v s = v dd i/o = 3.3 v) limit 1 , 2 parameter min max unit description f scl 400 khz scl clock frequency t 1 2.5 s scl cycle time t 2 0.6 s t high , scl high time t 3 1.3 s t low , scl low time t 4 0.6 s t hd, sta , start/repeated start condition hold time t 5 100 ns t su, dat , data setup time t 6 3 , 4 , 5 , 6 0 0.9 s t hd, dat , data hold time t 7 0.6 s t su, sta , setup time for repeated start t 8 0.6 s t su, sto , stop condition setup time t 9 1.3 s t buf , bus-free time between a stop condition and a start condition t 10 300 ns t r , rise time of both scl and sda when receiving 0 ns t r , rise time of both scl and sda when receiving or transmitting t 11 250 ns t f , fall time of sda when receiving 300 ns t f , fall time of both scl and sda when transmitting 20 + 0.1 c b 7 ns t f , fall time of both scl and sda when transmitting or receiving c b 400 pf capacitive load for each bus line 1 limits based on characterization results, with f scl = 400 khz and a 3 ma sink c urrent; not production tested. 2 all values referred to the v ih and the v il levels given in table 10. 3 t 6 is the data hold time that is measured from the falling edge of scl. it applies to data in transmission and acknowledge. 4 a transmitting device must internally pr ovide an output hold time of at least 300 ns for the sd a signal (with respect to v ih(min) of the scl signal) to bridge the undefined region of the falling edge of scl. 5 the maximum t 6 value must be met only if the device does not stretch the low period (t 3 ) of the scl signal. 6 the maximum value for t 6 is a function of the clock low time (t 3 ), the clock rise time (t 10 ), and the minimum data setup time (t 5(min) ). this value is calculated as t 6(max) = t 3 ? t 10 ? t 5(min) . 7 c b is the total capacitance of one bus line in picofarads. s da t 9 scl t 3 t 10 t 11 t 4 t 4 t 6 t 2 t 5 t 7 t 1 t 8 start condition repeated start condition stop condition 08791-034 figure 28. i 2 c timing diagram
ADXL312 rev. 0 | page 17 of 32 interrupts the ADXL312 provides two output pins for driving interrupts: int1 and int2. both interrupt pins are push-pull, low impedance pins with output specifications shown in table 12 . the default configuration of the interrupt pins is active high. this can be changed to active low by setting the int_invert bit in the data_format (address 0x31) register. all functions can be used simultaneously, with the only limiting feature being that some functions may need to share interrupt pins. interrupts are enabled by setting the appropriate bit in the int_enable register (address 0x2e) and are mapped to either the int1 or int2 pin based on the contents of the int_map register (address 0x2f). when initially configuring the interrupt pins, it is recommended that the functions and interrupt mapping be done before enabling the interrupts. when changing the con- figuration of an interrupt, it is recommended that the interrupt be disabled first, by clearing the bit corresponding to that function in the int_enable register, and then the function be reconfigured before enabling the interrupt again. configuration of the functions while the interrupts are disabled helps to prevent the accidental generation of an interrupt before desired. the interrupt functions are latched and cleared by either reading the data registers (address 0x32 to address 0x37) until the inter- rupt condition is no longer valid for the data-related interrupts or by reading the int_source register (address 0x30) for the remaining interrupts. this section describes the interrupts that can be set in the int_enable register and monitored in the int_source register. data_ready the data_ready bit is set when new data is available and is cleared when no new data is available. activity the activity bit is set when acceleration greater than the value stored in the thresh_act register (address 0x24) is experienced. inactivity the inactivity bit is set when acceleration of less than the value stored in the thresh_inact register (address 0x25) is experienced for more time than is specified in the time_inact register (address 0x26). the maximum value for time_inact is 255 sec. watermark the watermark bit is set when the number of samples in fifo equals the value stored in the samples bits (register fifo_ctl, address 0x38). the watermark bit is cleared automatically when fifo is read, and the content returns to a value below the value stored in the samples bits. overrun the overrun bit is set when new data replaces unread data. the precise operation of the overrun function depends on the fifo mode. in bypass mode, the overrun bit is set when new data replaces unread data in the datax, datay, and dataz registers (address 0x32 to address 0x37). in all other modes, the overrun bit is set when fifo is filled. the overrun bit is automatically cleared when the contents of fifo are read. table 12. interrupt pin digital output limit 1 parameter test conditions min max unit digital output low level output voltage (v ol ) i ol = 300 a 0.2 v dd i/o v high level output voltage (v oh ) i oh = ?150 a 0.8 v dd i/o v low level output current (i ol ) v ol = v ol, max 300 a high level output current (i oh ) v oh = v oh, min ?150 a pin capacitance f in = 1 mhz, v in = 2.5 v 8 pf rise/fall time rise time (t r ) 2 c load = 150 pf 210 ns fall time (t f ) 3 c load = 150 pf 150 ns 1 limits based on characterization results, not production tested. 2 rise time is measured as the transition time from v ol, max to v oh, min of the interrupt pin. 3 fall time is measured as the transition time from v oh, min to v ol, max of the interrupt pin.
ADXL312 rev. 0 | page 18 of 32 fifo the ADXL312 contains patent pending technology for an embedded memory management system with 32-level fifo that can be used to minimize host processor burden. this buffer has four modes: bypass, fifo, stream, and trigger (see table 21 ). each mode is selected by the settings of the fifo_mode bits in the fifo_ctl register (address 0x38). bypass mode in bypass mode, fifo is not operational and, therefore, remains empty. fifo mode in fifo mode, data from measurements of the x-, y-, and z-axes are stored in fifo. when the number of samples in fifo equals the level specified in the samples bits of the fifo_ctl register (address 0x38), the watermark interrupt is set. fifo continues accumulating samples until it is full (32 samples from measurements of the x-, y-, and z-axes) and then stops collecting data. after fifo stops collecting data, the device continues to operate; therefore, features such as activity detection can be used after fifo is full. the watermark interrupt continues to occur until the number of samples in fifo is less than the value stored in the samples bits of the fifo_ctl register. stream mode in stream mode, data from measurements of the x-, y-, and z- axes are stored in fifo. when the number of samples in fifo equals the level specified in the samples bits of the fifo_ctl register (address 0x38), the watermark interrupt is set. fifo continues accumulating samples and holds the latest 32 samples from measurements of the x-, y-, and z-axes, discarding older data as new data arrives. the watermark interrupt continues occurring until the number of samples in fifo is less than the value stored in the samples bits of the fifo_ctl register. trigger mode in trigger mode, fifo accumulates samples, holding the latest 32 samples from measurements of the x-, y-, and z-axes. after a trigger event occurs and an interrupt is sent to the int1 or int2 pin (determined by the trigger bit in the fifo_ctl register), fifo keeps the last n samples (where n is the value specified by the samples bits in the fifo_ctl register) and then operates in fifo mode, collecting new sample s only when fifo is not full. a delay of at least 5 s should be present between the trigger event occurring and the start of reading data from the fifo to allow the fifo to discard and retain the necessary samples. additional trigger events cannot be recognized until the trigger mode is reset. to reset the trigger mode, set the device to bypass mode and then set the device back to trigger mode. note that the fifo data should be read first because placing the device into bypass mode clears fifo. retrieving data from fifo the fifo data is read through the datax, datay, and dataz registers (address 0x32 to address 0x37). when the fifo is in fifo, stream, or trigger mode, reads to the datax, datay, and dataz registers read data stored in the fifo. each time data is read from the fifo, the oldest x-, y-, and z-axes data is placed into the datax, datay and dataz registers. if a single-byte read operation is performed, the remaining bytes of data for the current fifo sample are lost. therefore, all axes of interest should be read in a burst (or multiple-byte) read operation. to ensure that the fifo has completely popped (that is, that new data has completely moved into the datax, datay, and dataz registers), there must be at least 5 s between the end of reading the data registers and the start of a new read of the fifo or a read of the fifo_status register (address 0x39). the end of reading a data register is signified by the transition from register 0x37 to register 0x38 or by the cs pin going high. for spi operation at 1.6 mhz or less, the register addressing portion of the transmission is a sufficient delay to ensure that the fifo has completely popped. for spi operation greater than 1.6 mhz, it is necessary to deassert the cs pin to ensure a total delay of 5 s; otherwise, the delay will not be sufficient. the total delay necessary for 5 mhz operation is at most 3.4 s. this is not a concern when using i 2 c mode because the communication rate is low enough to ensure a sufficient delay between fifo reads.
ADXL312 rev. 0 | page 19 of 32 self-test the ADXL312 incorporates a self-test feature that effectively tests its mechanical and electronic systems simultaneously. when the self-test function is enabled (via the self_test bit in the data_format register, address 0x31), an electrostatic force is exerted on the mechanical sensor. this electrostatic force moves the mechanical sensing element in the same manner as acceleration, and it is additive to the acceleration experienced by the device. this added electrostatic force results in an output change in the x-, y-, and z-axes. because the electrostatic force is proportional to v s 2 , the output change varies with v s . this effect is shown in figure 29 . the scale factors shown in table 1 3 can be used to adjust the expected self-test output limits for different supply voltages, v s . the self-test feature of the ADXL312 also exhibits a bimodal behavior. however, the limits shown in table 1 and table 14 to table 17 are valid for both potential self- test values due to bimodality. use of the self-test feature at data rates less than 100 hz or at 1600 hz may yield values outside these limits. therefore, the part must be in normal power operation (low_power bit = 0 in bw_rate register, address 0x2c) and be placed into a data rate of 100 hz through 800 hz or 3200 hz for the self-test function to operate correctly. ?6 ?4 ?2 0 2 4 6 2.0 2.5 3.3 3.6 v s (v) self-test shift limit ( g ) x high x low y high y low z high z low 08791-242 figure 29. self-test output chan ge limits vs. supply voltage table 13. self-test output scale factors for different supply voltages, v s supply voltage, v s x-, y-axes z-axis 2.00 v 0.64 0.8 2.50 v 1.00 1.00 3.00 v 1.77 1.47 3.30 v 2.11 1.69 table 14. self-test output in lsb for 1.5 g , 10-bit or full resolution (t a = 25c, v s = v dd i/o = 2.5 v) axis min max unit x 65 725 lsb y ?725 ?65 lsb z 100 1175 lsb table 15. self-test output in lsb for 3 g , 10-bit resolution (t a = 25c, v s = v dd i/o = 2.5 v) axis min max unit x 32 362 lsb y ?362 ?32 lsb z 50 588 lsb table 16. self-test output in lsb for 6 g , 10-bit resolution (t a = 25c, v s = v dd i/o = 2.5 v) axis min max unit x 16 181 lsb y ?181 ?16 lsb z 25 294 lsb table 17. self-test output in lsb for 12 g , 10-bit resolution (t a = 25c, v s = v dd i/o = 2.5 v) axis min max unit x 8 90 lsb y ?90 ?8 lsb z 12 147 lsb
ADXL312 rev. 0 | page 20 of 32 register map table 18. register map address hex dec name type reset value description 0x00 0 devid r 11100101 device id. 0x01 to 0x1d 1 to 29 reserved reserved. do not access. 0x1e 30 ofsx r/ w 00000000 x-axis offset. 0x1f 31 ofsy r/ w 00000000 y-axis offset. 0x20 32 ofsz r/ w 00000000 z-axis offset. 0x21 33 reserved reserved. do not access. 0x22 34 reserved reserved. do not access. 0x23 35 reserved reserved. do not access. 0x24 36 thresh_act r/ w 00000000 activity threshold. 0x25 37 thresh_inact r/ w 00000000 inactivity threshold. 0x26 38 time_inact r/ w 00000000 inactivity time. 0x27 39 act_inact_ctl r/ w 00000000 axis enable control for activity and inactivity detection. 0x28 40 reserved reserved. do not access. 0x29 41 reserved reserved. do not access. 0x2a 42 reserved reserved. do not access. 0x2b 43 reserved reserved. do not access. 0x2c 44 bw_rate r/ w 00001010 data rate and power mode control. 0x2d 45 power_ctl r/ w 00000000 power-saving features control. 0x2e 46 int_enable r/ w 00000000 interrupt enable control. 0x2f 47 int_map r/ w 00000000 interrupt mapping control. 0x30 48 int_source r 00000010 source of interrupts. 0x31 49 data_format r/ w 00000000 data format control. 0x32 50 datax0 r 00000000 x-axis data 0. 0x33 51 datax1 r 00000000 x-axis data 1. 0x34 52 datay0 r 00000000 y-axis data 0. 0x35 53 datay1 r 00000000 y-axis data 1. 0x36 54 dataz0 r 00000000 z-axis data 0. 0x37 55 dataz1 r 00000000 z-axis data 1. 0x38 56 fifo_ctl r/ w 00000000 fifo control. 0x39 57 fifo_status r 00000000 fifo status.
ADXL312 rev. 0 | page 21 of 32 register definitions register 0x00devid (read only) d7 d6 d5 d4 d3 d2 d1 d0 1 1 1 0 0 1 0 1 the devid register holds a fixed device id code of 0xe5. register 0x1e, register 0x1f, register 0x20ofsx, ofsy, ofsz (read/write) the ofsx, ofsy, and ofsz registers are each eight bits and offer user-set offset adjustments in twos complement format with a scale factor of 11.6 m g /lsb (that is, 0x7f = +1.5 g ). the value stored in the offset registers is automatically added to the acceleration data, and the resulting value is stored in the output data registers. register 0x24thresh_act (read/write) the thresh_act register is eight bits and holds the threshold value for detecting activity. the data format is unsigned; therefore, the magnitude of the activity event is compared with the value in the thresh_act register. the scale factor is 46.4 m g /lsb. a value of 0 may result in undesirable behavior if the activity interrupt is enabled. register 0x25thresh_inact (read/write) the thresh_inact register is eight bits and holds the threshold value for detecting inactivity. the data format is unsigned; therefore, the magnitude of the inactivity event is compared with the value in the thresh_inact register. the scale factor is 46.4 m g /lsb. a value of 0 may result in undesirable behavior if the inactivity interrupt is enabled. register 0x26time_inact (read/write) the time_inact register is eight bits and contains an unsigned time value representing the amount of time that acceleration must be less than the value in the thresh_inact register for inactivity to be declared. the scale factor is 1 sec/lsb. unlike the other interrupt functions, which use unfiltered data (see the threshold section), the inactivity function uses filtered output data. at least one output sample must be generated for the inactivity interrupt to be triggered. this results in the function appearing unresponsive if the time_inact register is set to a value less than the time constant of the output data rate. a value of 0 results in an interrupt when the output data is less than the value in the thresh_inact register. register 0x27act_inact_ctl (read/write) d7 d6 d5 d4 act ac/dc act_x enable act_y enable act_z enable d3 d2 d1 d0 inact ac/dc inact_x enable inact_y enable inact_z enable act ac/dc and inact ac/dc bits a setting of 0 selects dc-coupled operation, and a setting of 1 enables ac-coupled operation. in dc-coupled operation, the current acceleration magnitude is compared directly with thresh_act and thresh_inact to determine whether activity or inactivity is detected. in ac-coupled operation for activity detection, the acceleration value at the start of activity detection is taken as a reference value. new samples of acceleration are then compared to this reference value and, if the magnitude of the difference exceeds the thresh_act value, the device triggers an activity interrupt. similarly, in ac-coupled operation for inactivity detection, a reference value is used for comparison and is updated whenever the device exceeds the inactivity threshold. after the reference value is selected, the device compares the magnitude of the difference between the reference value and the current acceleration with thresh_inact. if the difference is less than the value in thresh_inact for the time in time_inact, the device is considered inactive and the inactivity interrupt is triggered. act_x enable bits and inact_x enable bits a setting of 1 enables x-, y-, or z-axis participation in detecting activity or inactivity. a setting of 0 excludes the selected axis from participation. if all axes are excluded, the function is disabled. for activity detection, all participating axes are logically ored, causing the activity function to trigger when any of the participating axes exceeds the threshold. for inactiv- ity detection, all participating axes are logically anded, causing the inactivity function to trigger only if all participating axes are below the threshold for the specified period of time. register 0x2cbw_rate (read/write) d7 d6 d5 d4 d3 d2 d1 d0 0 0 0 low_power rate low_power bit a setting of 0 in the low_power bit selects normal operation, and a setting of 1 selects reduced power operation, which has somewhat higher noise (see the power modes section for details). rate bits these bits select the device bandwidth and output data rate (see table 6 and tabl e 7 for details). the default value is 0x0a, which translates to a 100 hz output data rate. an output data rate should be selected that is appropriate for the communica-tion protocol and frequency selected. selecting too high of an output data rate with a low communication speed results in samples being discarded. register 0x2dpower_ctl (read/write) d7 d6 d5 d4 d3 d2 d1 d0 0 0 link auto_sleep measure sleep wakeup link bit a setting of 1 in the link bit with both the activity and inactivity functions enabled delays the start of the activity function until inactivity is detected. after activity is detected, inactivity detection begins, preventing the detection of activity. this bit serially links the activity and inactivity functions. when this bit is set to 0,
ADXL312 rev. 0 | page 22 of 32 the inactivity and activity functions are concurrent. additional information can be found in the link mode section. when clearing the link bit, it is recommended that the part be placed into standby mode and then set back to measurement mode with a subsequent write. this is done to ensure that the device is properly biased if sleep mode is manually disabled; otherwise, the first few samples of data after the link bit is cleared may have additional noise, especially if the device was asleep when the bit was cleared. auto_sleep bit if the link bit is set, a setting of 1 in the auto_sleep bit sets the ADXL312 to switch to sleep mode when inactivity is detected (that is, when acceleration has been below the thresh_inact value for at least the time indicated by time_inact). a setting of 0 disables automatic switching to sleep mode. see the description of the sleep bit in this section for more information. when clearing the auto_sleep bit, it is recommended that the part be placed into standby mode and then set back to measure- ment mode with a subsequent write. this is done to ensure that the device is properly biased if sleep mode is manually disabled; otherwise, the first few samples of data after the auto_sleep bit is cleared may have additional noise, especially if the device was asleep when the bit was cleared. measure bit a setting of 0 in the measure bit places the part into standby mode, and a setting of 1 places the part into measurement mode. the ADXL312 powers up in standby mode with minimum power consumption. sleep bit a setting of 0 in the sleep bit puts the part into the normal mode of operation, and a setting of 1 places the part into sleep mode. sleep mode suppresses data_ready (see register 0x2e, register 0x2f, and register 0x30), stops transmission of data to fifo, and switches the sampling rate to one specified by the wake-up bits. in sleep mode, only the activity function can be used. when clearing the sleep bit, it is recommended that the part be placed into standby mode and then set back to measurement mode with a subsequent write. this is done to ensure that the device is properly biased if sleep mode is manually disabled; otherwise, the first few samples of data after the sleep bit is cleared may have additional noise, especially if the device was asleep when the bit was cleared. wa k e-up bit s these bits control the frequency of readings in sleep mode as described in table 19. table 19. frequency of readings in sleep mode setting d1 d0 frequency (hz) 0 0 8 0 1 4 1 0 2 1 1 1 register 0x2eint_enable (read/write) d7 d6 d5 d4 data_ready n/a n/a activity d3 d2 d1 d0 inactivity n/a watermark overrun setting bits in this register to a value of 1 enables their respective functions to generate interrupts, whereas a value of 0 prevents the functions from generating interrupts. the data_ready, watermark, and overrun bits enable only the interrupt output; the functions are always enabled. it is recommended that interrupts be configured before enabling their outputs. register 0x2fint_map (read/write) d7 d6 d5 d4 data_ready n/a n/a activity d3 d2 d1 d0 inactivity n/a watermark overrun any bits set to 0 in this register send their respective interrupts to the int1 pin, whereas bits set to 1 send their respective interrupts to the int2 pin. all selected interrupts for a given pin are ored. register 0x30int_source (read only) d7 d6 d5 d4 data_ready n/a n/a activity d3 d2 d1 d0 inactivity n/a watermark overrun bits set to 1 in this register indicate that their respective functions have triggered an event, whereas a value of 0 indicates that the corresponding event has not occurred. the data_ready, watermark, and overrun bits are always set if the corresponding events occur, regardless of the int_enable register settings, and are cleared by reading data from the datax, datay, and dataz registers. the data_ready and watermark bits may require multiple reads, as indicated in the fifo mode descriptions in the fifo section. other bits, and the corresponding interrupts, are cleared by reading the int_source register.
ADXL312 rev. 0 | page 23 of 32 register 0x31data_format (read/write) d7 d6 d5 d4 d3 d2 d1 d0 self_test spi int_invert 0 full_res justify range the data_format register controls the presentation of data to register 0x32 through register 0x37. all data, except that for the 12 g range, must be clipped to avoid rollover. self_test bit a setting of 1 in the self_test bit applies a self-test force to the sensor, causing a shift in the output data. a value of 0 disables the self-test force. spi bit a value of 1 in the spi bit sets the device to 3-wire spi mode, and a value of 0 sets the device to 4-wire spi mode. int_invert bit a value of 0 in the int_invert bit sets the interrupts to active high, and a value of 1 sets the interrupts to active low. full_res bit when this bit is set to a value of 1, the device is in full resolution mode, where the output resolution increases with the g range set by the range bits to maintain a 2.9 m g /lsb scale factor. when the full_res bit is set to 0, the device is in 10-bit mode, and the range bits determine the maximum g range and scale factor. justify bit a setting of 1 in the justify bit selects left (msb) justified mode, and a setting of 0 selects right justified mode with sign extension. range bits these bits set the g range as described in table 20 . table 20. g range setting setting d1 d0 g range 0 0 1.5 g 0 1 3 g 1 0 6 g 1 1 12 g register 0x32 to register 0x37datax0, datax1, datay0, datay1, dataz0, dataz1 (read only) these six bytes (register 0x32 to register 0x37) are eight bits each and hold the output data for each axis. register 0x32 and register 0x33 hold the output data for the x-axis, register 0x34 and register 0x35 hold the output data for the y-axis, and register 0x36 and register 0x37 hold the output data for the z-axis. the output data is twos complement, with datax0 as the least significant byte and datax1 as the most significant byte, where x represent x, y, or z. the data_format register (address 0x31) controls the format of the data. it is recommended that a multiple-byte read of all registers be performed to prevent a change in data between reads of sequential registers. register 0x38fifo_ctl (read/write) d7 d6 d5 d4 d3 d2 d1 d0 fifo_mode trigger samples fifo_mode bits these bits set the fifo mode, as described in table 21 . table 21. fifo modes setting d7 d6 mode function 0 0 bypass fifo is bypassed. 0 1 fifo fifo collects up to 32 values and then stops collecting data, collecting new data only when fifo is not full. 1 0 stream fifo holds the last 32 data values. when fifo is full, the oldest data is overwritten with newer data. 1 1 trigger when triggered by the trigger bit, fifo holds the last data samples before the trigger event and then continues to collect data until full. new data is collected only when fifo is not full. trigger bit a value of 0 in the trigger bit links the trigger event of trigger mode int1, and a value of 1 links the trigger event to int2. samples bits the function of these bits depends on the fifo mode selected (see tabl e 22 ). entering a value of 0 in the samples bits immediately sets the watermark status bit in the int_source register, regardless of which fifo mode is selected. undesirable operation may occur if a value of 0 is used for the samples bits when trigger mode is used. table 22. samples bits functions fifo mode samples bits function bypass none. fifo specifies how many fifo entries are needed to trigger a watermark interrupt. stream specifies how many fifo entries are needed to trigger a watermark interrupt. trigger specifies how many fifo samples are retained in the fifo buffer before a trigger event.
ADXL312 rev. 0 | page 24 of 32 0x39fifo_status (read only) d7 d6 d5 d4 d3 d2 d1 d0 fifo_trig 0 entries fifo_trig bit a 1 in the fifo_trig bit corresponds to a trigger event occurring, and a 0 means that a fifo trigger event has not occurred. entries bits these bits report how many data values are stored in fifo. access to collect the data from fifo is provided through the datax, datay, and dataz registers. fifo reads must be done in burst or multiple-byte mode because each fifo level is cleared after any read (single- or multiple-byte) of fifo. fifo stores a maximum of 32 entries, which equates to a maximum of 33 entries available at any given time because an additional entry is available at the output filter of the device.
ADXL312 rev. 0 | page 25 of 32 applications information power supply decoupling a 1 f tantalum capacitor (c s ) at v s and a 0.1 f ceramic capacitor (c i/o ) at v dd i/o placed close to the ADXL312 supply pins is recommended to adequately decouple the accelerometer from noise on the power supply. if additional decoupling is necessary, a resistor or ferrite bead, no larger than 100 , in series with v s may be helpful. additionally, increasing the bypass capacitance on v s to a 10 f tantalum capacitor in parallel with a 0.1 f ceramic capacitor may also improve noise. care should be taken to ensure that the connection from the ADXL312 ground to the power supply ground has low impedance because noise transmitted through ground has an effect similar to noise transmitted through v s . it is recommended that v s and v dd i/o be separate supplies to minimize digital clocking noise on the v s supply. if this is not possible, additional filtering of the supplies as previously mentioned may be necessary. ADXL312 gnd int1 int2 cs scl/sclk sdo/alt address sda/sdi/sdio 3-wire or 4-wire spi or i 2 c interface v s v s c s v dd i/o v dd i/o c i/o interrupt control 08791-035 figure 30. application diagram mechanical considerations for mounting the ADXL312 should be mounted on the pcb in a location close to a hard mounting point of the pcb to the case. mounting the ADXL312 at an unsupported pcb location, as shown in figure 31 , may result in large, apparent measurement errors due to undampened pcb vibration. locating the accelerometer near a hard mounting point ensures that any pcb vibration at the accelerometer is above the accelerometers mechanical sensor resonant frequency and, therefore, effectively invisible to the accelerometer. multiple mounting points, close to the sensor, and/or a thicker pcb also help to reduce the effect of system resonance on the performance of the sensor. mounting points pcb accelerometers 08791-036 figure 31. incorrectly placed accelerometers threshold the lower output data rates are achieved by decimating a common sampling frequency inside the device. the activity detection function is performed using undecimated data. because the bandwidth of the output data varies with the data rate and is lower than the bandwidth of the undecimated data, the high frequency and high g data that are used to determine activity may not be present if the output of the accelerometer is examined. this may result in functions triggering when acceleration data does not appear to meet the conditions set by the user for the corresponding function. link mode the function of the link bit is to reduce the number of activity interrupts that the processor must service by setting the device to look for activity only after in activity. for proper operation of this feature, the processor must still respond to the activity and inactivity interrupts by reading the int_source register (address 0x30) and, therefore, cleari ng the interrupts. if an activity interrupt is not cleared, the part cannot go into autosleep mode. sleep mode vs. low power mode in applications where a low data rate and low power consumption are desired (at the expense of noise performance), it is recommended that low power mode be used. the use of low power mode preserves the functionality of the data_ready interrupt and the fifo for postprocessing of the acceleration data. sleep mode, while offering a low data rate and power consumption, is not intended for data acquisition. however, when sleep mode is used in conjunction with the autosleep mode and the link mode, the part can automatically switch to a low power, low sampling rate mode when inactivity is detected. to prevent the generation of redundant inactivity interrupts, the inactivity interrupt is automatically disabled and activity is enabled. when the ADXL312 is in sleep mode, the host processor can also be placed into sleep mode or low power mode to save significant system power. once activity is detected, the accelerometer automatically switches back to the original data rate of the application and provides an activity interrupt that can be used to wake up the host processor. similar to when inactivity occurs, detection of activity events is disabled and inactivity is enabled.
ADXL312 rev. 0 | page 26 of 32 using self-test the self-test change is defined as the difference between the acceleration output of an axis with self-test enabled and the acceleration output of the same axis with self-test disabled (see endnote 4 of table 1 ). this definition assumes that the sensor does not move between these two measurements because, if the sensor moves, a non-self-test related shift corrupts the test. proper configuration of the ADXL312 is also necessary for an accurate self-test measurement. the part should be set with a data rate greater than or equal to 100 hz. this is done by ensuring that a value greater than or equal to 0x0a is written into the rate bits (bit d3 through bit d0) in the bw_rate register (address 0x2c). the part also must be placed into normal power operation by ensuring the low_power bit in the bw_rate register is cleared (low_power bit = 0) for accurate self-test measurements. it is recommended that the part be set to full-resolution, 12 g mode to ensure that there is sufficient dynamic range for the entire self-test shift. this is done by setting bit d3 of the data_format register (address 0x31) and writing a value of 0x03 to the range bits (bit d1 and bit d0) of the data_format register (address 0x31). this results in a high dynamic range for measurement and a 2.9 m g /lsb scale factor. after the part is configured for accurate self-test measurement, several samples of x-, y-, and z-axis acceleration data should be retrieved from the sensor and averaged together. the number of samples averaged is a choice of the system designer, but a recom- mended starting point is 0.1 sec worth of data, which corresponds to 10 samples at 100 hz data rate. the averaged values should be stored and labeled appropriately as the self-test disabled data, that is, x st_off , y st_off , and z st_off . next, self-test should be enabled by setting bit d7 of the data_format register (address 0x31). the output needs some time (about four samples) to settle after enabling self-test. after allowing the output to settle, several samples of the x-, y-, and z-axis acceleration data should be taken again and averaged. it is recommended that the same number of samples be taken for this average as was previously taken. these averaged values should again be stored and labeled appropriately as the value with self- test enabled, that is, x st_on , y st_on , and z st_on . self-test can then be disabled by clearing bit d7 of the data_format register (address 0x31). with the stored values for self-test enabled and disabled, the self-test change is as follows: x st = x st_on ? x st_off y st = y st_on ? y st_off z st = z st_on ? z st_off because the measured output for each axis is expressed in lsbs, x st , y st , and z st are also expressed in lsbs. these values can be converted to g s of acceleration by multiplying each value by the 2.9 mg/lsb scale factor, if configured for full-resolution mode. additionally, table 14 through table 17 correspond to the self- test range converted to lsbs and can be compared with the measured self-test change when operating at a v s of 3.3 v. for other voltages, the minimum and maximum self-test output values should be adjusted based on (multiplied by) the scale factors shown in table 13 . if the part was placed into 1.5 g , 10-bit or full-resolution mode, the values listed in table 14 should be used. although the fixed 10-bit mode or a range other than 12 g can be used, a different set of values, as indicated in tabl e 15 through table 1 7 , must be used. using a range below 6 g may result in insufficient dynamic range and should be considered when selecting the range of operation for measuring self-test. if the self-test change is within the valid range, the test is considered successful. generally, a part is considered to pass if the minimum magnitude of change is achieved. however, a part that changes by more than the maximum magnitude is not necessarily a failure.
ADXL312 rev. 0 | page 27 of 32 data formatting of upper data rates formatting of output data at the 3200 hz and 1600 hz output data rates changes depending on the mode of operation (full- resolution or fixed 10-bit) and the selected output range. when in full-resolution or 1.5 g , 10-bit operation, the lsb of the output data-word is always 0. when data is right justified, this corresponds to bit d0 of the datax0 register, as shown in figure 32 . when data is left justified and the part is operating in 1.5 g , 10-bit mode, the lsb of the output data-word is bit d6 of the datax0 register. in full-resolution operation when data is left justified, the location of the lsb changes according to the selected output range. for a range of 1.5 g , the lsb is bit d6 of the datax0 register; for 3 g , bit d5 of the datax0 register; for 6 g , bit d4 of the datax0 register; and for 12 g , bit d3 of the datax0 register. this is shown in figure 33 . the use of 3200 hz and 1600 hz output data rates for fixed 10-bit operation in the 3 g, 6 g , and 12 g output ranges provides an lsb that is valid and that changes according to the applied accel- eration. therefore, in these modes of operation, bit d0 is not always 0 when output data is right justified, and bit d6 is not always 0 when output data is left justified. operation at any data rate of 800 hz or lower also provides a valid lsb in all ranges and modes that changes according to the applied acceleration. 0 d1d2d3 d4 d5d6d7 d0 d1 d2 d3 d4 d5 d6d7 d0d1d2d3d4d5 d6 d7 d0d1d2 d3d4d5 d6d7 datax1 register datax0 register output data-word for 12 g , full-resolution mode. output data-word for 1.5 g , 10-bit and 1.5 g , full-resolution modes. the 3 g and 6 g full-resolution modes have the same lsb location as the 1.5 g and 12 g full-resolution modes, but the msb location changes to bit d2 and bit d3 of the datax1 register for 3 g and 6 g, respectively. 0 8791-145 figure 32. data formatting of full-resolution and 1.5 g , 10-bit modes of operation when output data is right justified 0 d1d2d3d4d5d6d7 d0 d1 d2 d3d4d5d6 d7 d0d1d2d3 d4 d5 d6 d7 d0 d1 d2 d3 d4 d5 d6d7 datax1 register datax0 register msb for all modes of operation when left justified. lsb for 1.5 g , full-resolution and 1.5 g , 10-bit modes. lsb for 3 g , full-resolution mode. lsb for 6 g , full-resolution mode. lsb for 12 g , full-resolution mode. for 3200hz and 1600hz output data rates, the lsb in these modes is always 0. additionally, any bits to the right of the lsb are always 0 when the output data is left justified. 08791-146 figure 33. data formatting of full-resolution and 1.5 g , 10-bit modes of operation when output data is left justified
ADXL312 rev. 0 | page 28 of 32 noise performance the specification of noise shown in table 1 corresponds to the best case noise of the ADXL312 in normal power operation (low_power bit = 0 in bw_rate register, address 0x2c). for normal power operation at data rates below 100 hz, the noise of the ADXL312 is equivalent to the noise at 100 hz odr in lsbs. for data rates greater than 100 hz, the noise increases roughly by a factor of 2 per doubling of the data rate. for example, at 400 hz odr, the noise on the x- and y-axes is typically less than 2.0 lsb rms and the noise on the z-axis is typically less than 3.0 lsb rms. for low power operation (low_power bit = 1 in bw_rate register, address 0x2c) the noise of the ADXL312 is constant for all valid data rates shown in table 7 . this value is typically less than 2.4 lsb rms for the x- and y-axes and typically less than 3.5 lsb rms for the z-axis. figure 34 shows the typical allan deviation for the ADXL312. the 1/f corner of the device, as shown in this figure, is very low, allowing absolute resolution of approximately 100 g (assuming there is sufficient integration time). the figure also shows that the noise density is 340 g /hz for the x- and y-axes and 470 g /hz for the z-axis. 0.01 0.1 1 10 100 1k 10k 10 100 1k 10k averaging period, (s) allan devi a tion ( g ) x-axis y-axis z-axis 08791-251 figure 34. root allan deviation 70 80 90 100 110 120 130 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 supply voltage, v s (v) percentage of normalized noise (%) x-axis y-axis z-axis 08791-252 figure 35. normalized noise vs. supply voltage, v s
ADXL312 rev. 0 | page 29 of 32 axes of acceleration sensitivity a z a y a x 08791-042 figure 36. axes of acceleration sensitivity (corresponding outp ut voltage increases when accelerated along the sensitive axis) gravity x out = +1 g y out = 0 g z out = 0 g x out = ?1 g y out = 0 g z out = 0 g top x out = 0 g y out = +1 g z out = 0 g top x out = 0 g y out = ?1 g z out = 0 g top x out = 0 g y out = 0 g z out = +1 g x out = 0 g y out = 0 g z out = ?1 g top 08791-043 figure 37. output response vs. orientation to gravity
ADXL312 rev. 0 | page 30 of 32 solder profile supplier t p t c maximum ramp up rate = 3c/s maximum ramp down rate = 6c/s preheat area t c t c ?5c t c ?5c t smax t l t p t p t l t s user t p t c supplier t p user t p temper a tur e time time 25c to peak 25 t smin 08791-038 figure 38: recommended soldering profile table 23: recommended soldering profile 1 , 2 condition profile feature sn63/pb37 pb-free average ramp rate (t l to t p ) 3c/second maximum preheat minimum temperature (t smin ) 100c 150c maximum temperature (t smax ) 150c 200c time (t smin to t smax ) (t s ) 60 to 120 seconds 60 to 180 seconds t smax to t l ramp-up rate 3c/second time maintained above liquidous (t l ) liquidous temperature (t l ) 183c 217c time (t l ) 60 to 150 seconds 60 to 150 seconds peak temperature (t p ) 240c + 0c/?5c 260c + 0c/?5c time within 5c of actual peak temperature (t p ) 10 to 30 seconds 20 to 40 seconds ramp-down rate 6c/second maximum time 25c to peak temperature 6 minutes maximum 8 minutes maximum 1 based on jedec st andard j-std-020d.1 2 for best results, the soldering profile should be in accordance with the recommendations of the manufacturer of the solder past e used.
ADXL312 rev. 0 | page 31 of 32 outline dimensions 1 0.50 bsc bottom view top view pin 1 indicator 32 9 16 17 24 25 8 exposed pad p i n 1 i n d i c a t o r seating plane 0.05 max 0.02 nom 0.20 ref coplanarity 0.05 0.30 0.25 0.18 5.10 5.00 sq 4.90 1.55 1.45 1.35 for proper connection of the exposed pad, refer to the pin configuration and function descriptions section of this data sheet. 0.45 0.40 0.35 0.20 min 3.70 3.60 sq 3.50 compliant to jedec standards mo-254-ljjd. 12-03-2010-b figure 39. 32-lead lead frame chip scale package [lfcsp_lq] 5 mm 5 mm body, thick quad (cp-32-17) dimensions shown in millimeters 08791-038 0.30 mm 0.30 mm 0.30 mm 0.50 mm 3.60 mm 5.34 mm 0.57 mm figure 40. sample solder pad layout (land pattern)
ADXL312 rev. 0 | page 32 of 32 ordering guide model 1, 2 measurement range specified voltage (v) temperature range package description package option ADXL312wacpz 1.5 g , 3 g , 6 g , 12 g 3.3 ?40c to +105c 32-lead lead frame chip scale package [lfcsp_lq] cp-32-17 ADXL312wacpz-rl 1.5 g , 3 g , 6 g , 12 g 3.3 ?40c to +105c 32-lead lead frame chip scale package [lfcsp_lq] cp-32-17 ADXL312acpz 1.5 g , 3 g , 6 g , 12 g 3.3 ?40c to +105c 32-lead lead frame chip scale package [lfcsp_lq] cp-32-17 ADXL312acpz-rl 1.5 g , 3 g , 6 g , 12 g 3.3 ?40c to +105c 32-lead lead frame chip scale package [lfcsp_lq] cp-32-17 eval-ADXL312z evaluation board eval-ADXL312z-m evaluation board eval-ADXL312z-s evaluation board 1 z = rohs compliant part 2 w = qualified for auto motive applications automotive products the ADXL312w models are available with controlled manufacturing to support the quality and reliability requirements of automoti ve applications. note that these automotive models may have specifications that differ from the commercial models; therefore, desi gners should review the specifications section of this data sheet carefully. only the automotive grade products shown are available f or use in automotive applications. contact your local analog devices account representative for specific product ordering information and to obtain the specific automotive reliability reports for these models. i 2 c refers to a communications protocol originally developed by philips semiconductors (now nxp semiconductors). ?2010 analog devices, inc. all rights reserved. trademarks and registered trademarks are the prop erty of their respective owners. d08791-0-12/10(0)


▲Up To Search▲   

 
Price & Availability of ADXL312

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X